#ifndef CUSTOMLISTVIEW_H
#define CUSTOMLISTVIEW_H

#include <QListView>

class CustomListView : public QListView
{
    Q_OBJECT
public:
    CustomListView(QWidget *parent = nullptr) : QListView(parent) {}
    CustomListView(QObject *parent);
protected:
    void keyPressEvent(QKeyEvent *event) override;
private:
    void printCurrentItem();

};

#endif // CUSTOMLISTVIEW_H
